<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 */
/**
 * Data model for table "coverage_line_status"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 *
 * @property-read mixed Id
 * @property-read mixed FileId
 * @property-read mixed Status
 * @property-read mixed TestCount
 * @property-read mixed Line
 */
abstract class BaseCoverageLineStatus extends BaseRecord
{
    const TABLE_NAME = "coverage_line_status";

    public function __construct()
    {
        parent::__construct(self::TABLE_NAME);
    }

    protected function initFields()
    {
        $this->hasColumn('id', 'PUA:int(3)');
        $this->hasColumn('file_id', 'int(3)');
        $this->hasColumn('status', 'int(3)');
        $this->hasColumn('test_count', 'U:int(3)');
        $this->hasColumn('line', 'U:int(3)');
    }

    public function initRelations()
    {
    }

    public function getById($id)
    {
        return parent::getById($id, 'CoverageLineStatus');
    }

    public function getByParams( $params, $type = ORMRecord::ONE_RECORD, $limit = null )
    {
        return parent::getByParams( $params, $type, $limit, 'CoverageLineStatus');
    }

    public function getAll( $limit = null )
    {
        return parent::getAll( $limit, 'CoverageLineStatus' );
    }
}